package com.gzx.plugin.tjzy.modular.word.mediation.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.gzx.plugin.tjzy.modular.word.mediation.bo.GzxWordMediationAddBo;
import com.gzx.plugin.tjzy.modular.word.mediation.bo.GzxWordMediationQueryBo;
import com.gzx.plugin.tjzy.modular.word.mediation.vo.GzxWordMediationVo;
import jakarta.servlet.http.HttpServletResponse;

import java.io.IOException;

/**
 * @author zjt
 * @description
 * @since 2025/3/4 16:15
 */
public interface GzxWordMediationService {

    /**
     * 分页查询
     *
     * @param mediationWordQueryBo
     * @return
     */
    Page<GzxWordMediationVo> pageList(GzxWordMediationQueryBo mediationWordQueryBo);

    /**
     * 新增调解协议
     *
     * @param mediationWordAddBo
     */
    String addOrEdit(GzxWordMediationAddBo mediationWordAddBo);

    /**
     * 设置身份证号
     *
     * @param id
     * @param debtorCardId
     */
    void saveDebtorCard(Long id, String debtorCardId);

    /**
     * 生成调解协议
     *
     * @param mediationId
     * @param response
     */
    void generateMediationWord(Long mediationId, HttpServletResponse response) throws IOException;

    /**
     * 获取调解协议数据
     *
     * @param caseId
     * @return
     */
    GzxWordMediationVo getWordMediationData(Long caseId);
}
